import { get } from '@/utils/http.js'

const api = {
  bing: {
    url: '/bing/HPImageArchive.aspx',
    params: {
      format: 'js',
      idx: 0,
      n: 10,
      mkt: 'zh-CN',
      safeSearch: 'strict',
      setLang: 'zh-CN',
      textDecorations: 'true',
      textFormat: 'plain',
      type: 'js',
      version: '1.0',
    },
  },
}

export const getBingList = () => {
  return get(api.bing.url, api.bing.params)
}
